<div ng-controller="addCookCtrl" class="cry">
    <div class="cry_title">
    	<h3 class="mainTitle" ng-if="coId">
            编辑厨师
        </h3>
        <h3 class="mainTitle" ng-if="!coId">
            <i class="iconfont icon-tianjiabianji"></i>
            添加厨师
        </h3>
        <div class="tools">
            <ul>
                <li>
                    <a class="btn btn-default" href="javascript:history.go(-1)">返回</a>
                </li>
            </ul>
        </div>
    </div>
    <div class="container-fluid bg-white">
    	<form role="form" class="form-horizontal cry_form">
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                    厨师姓名
                </label>
                <div class="col-sm-3">
                    <input type="text" class="control-label text-left" ng-model="cook.co_username" placeholder="姓名" maxlength="11" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                    联系电话
                </label>
                <div class="col-sm-3">
                    <input type="text" class="control-label text-left" ng-model="cook.co_phone" placeholder="电话" maxlength="11" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                    身份证号
                </label>
                <div class="col-sm-3">
                    <input type="text" class="control-label text-left" ng-model="cook.co_idcard" placeholder="身份证号" maxlength="18" />
                </div>
            </div>
            <div class="form-group">
            	<label class="col-sm-2 control-label cry_label">
                    性别
                </label>
                <div class="col-sm-4">
	            	<div class="radio clip-radio radio-success radio-inline" style="margin-top: 0!important; margin-bottom: 0 !important;">
	                    <input type="radio" id="sex_man" name="cook_sex" value="MAN" checked="checked" data-ng-model="cook.co_gender">
	                    <label for="sex_man">
	                        男
	                    </label>
	                    <input type="radio" id="sex_woman" name="cook_sex" value="WOMAN" data-ng-model="cook.co_gender">
	                    <label for="sex_woman">
	                        女
	                    </label>
	                </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                    厨师证号
                </label>
                <div class="col-sm-3">
                    <input type="text" class="control-label text-left" ng-model="cook.co_num"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                    发证日期
                </label>
                <div class="col-sm-3">
                    <input type="text" class="control-label text-left" datepicker-popup="yyyy-MM-dd" ng-model="cook.send_papers_date" ng-click="startOrderOpen = !startOrderOpen" is-open="startOrderOpen" ng-init="startOrderOpen = false"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                    发证日期
                </label>
                <div class="col-sm-3">
                    <input type="text" class="control-label text-left" datepicker-popup="yyyy-MM-dd" ng-model="cook.send_papers_date" ng-click="startOrderOpen = !startOrderOpen" is-open="startOrderOpen" ng-init="startOrderOpen = false"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                     证件有效期
                </label>
                <div class="col-sm-3">
                    <input type="text" class="control-label text-left" ng-model="cook.co_validity_period"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                     联系地址
                </label>
                <div class="col-sm-3">
                    <input type="text" class="control-label text-left" ng-model="cook.co_contact_addr"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                     服务区域
                </label>
                <div class="col-sm-7">
                    <div ng-repeat="($index,area) in areaList" ng-style="$index<areaList.length-1?myStyle:''" ng-init="myStyle={'border-bottom':'1px solid #ccc'}">
                        <div class="checkbox clip-check check-success checkbox-inline">
                            <input id="ch_{{area.city_id}}" type="checkbox" ng-model="area.checked" ng-change="checkAll(area)">
                            <label for="ch_{{area.city_id}}">
                                {{area.city_name}}
                            </label>
                        </div><br/>
                        <div class="checkbox clip-check check-success checkbox-inline" ng-repeat="subarea in area.sub_area">
                            <input id="ch_{{subarea.city_id}}" type="checkbox" ng-model="subarea.checked">
                            <label for="ch_{{subarea.city_id}}">
                                {{subarea.city_name}}
                            </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                     个人介绍
                </label>
                <div class="col-sm-3">
                     <textarea class="form-control" rows="3" ng-model="cook.co_mark"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                     认证情况
                </label>
                <div class="col-sm-3">
                    <select ng-model="cook.co_auth_status">
                    	<option value="Y">已认证</option>
                        <option value="N">未认证</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                     厨师等级
                </label>
                <div class="col-sm-3">
                    <select ng-model="cook.co_rank">
                    	<option value="SUPER">国家特级</option>
                        <option value="ONE">国家一级</option>
                        <option value="TWO">国家二级</option>
                        <option value="THREE">国家三级</option>
                        <option value="FOUR">国家四级</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label cry_label">
                    头像
                </label>
                <div class="col-sm-10">
                    <div nv-file-drop="" uploader="uploaderCoverImage">
                        <div class="add_img_box">
                            <!--原图片显示begin-->
                            <span class="img_item" ng-if="cook.co_pic">
                                <img src="{{cook.pic_url}}">
                                <i class="delet_btn" data-ng-click="removeCover()">删除</i>
                            </span>
                            <!--原图片显示end-->
                            <span class="btn btn-file" ng-if="!cook.co_pic||cook.co_pic==''">
                                <input type="file" nv-file-select="" uploader="uploaderCoverImage" multiple="" name="fileInfo">
                            </span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group margin-bottom-0  margin-top-25">
                <label class="col-sm-2 control-label">

                </label>
                <div class="col-sm-10">
                    <button type="button" class="btn btn-primary margin-right-20" ng-click="submit($event)">
                        保存
                    </button>
                    <a href="javascript:history.go(-1)" class="btn btn-cancel">
                        取消
                    </a>
                </div>
            </div>
        </form>
    </div>
</div>